package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HonorMapper;
import com.ruoyi.system.domain.Honor;
import com.ruoyi.system.service.IHonorService;

/**
 * 荣誉称号Service业务层处理
 * 
 * @author wei&wu
 * @date 2024-05-25
 */
@Service
public class HonorServiceImpl implements IHonorService 
{
    @Autowired
    private HonorMapper honorMapper;

    /**
     * 查询荣誉称号
     * 
     * @param honorId 荣誉称号主键
     * @return 荣誉称号
     */
    @Override
    public Honor selectHonorByHonorId(String honorId)
    {
        return honorMapper.selectHonorByHonorId(honorId);
    }

    /**
     * 查询荣誉称号列表
     * 
     * @param honor 荣誉称号
     * @return 荣誉称号
     */
    @Override
    public List<Honor> selectHonorList(Honor honor)
    {
        return honorMapper.selectHonorList(honor);
    }

    /**
     * 新增荣誉称号
     * 
     * @param honor 荣誉称号
     * @return 结果
     */
    @Override
    public int insertHonor(Honor honor)
    {
        return honorMapper.insertHonor(honor);
    }

    /**
     * 修改荣誉称号
     * 
     * @param honor 荣誉称号
     * @return 结果
     */
    @Override
    public int updateHonor(Honor honor)
    {
        return honorMapper.updateHonor(honor);
    }

    /**
     * 批量删除荣誉称号
     * 
     * @param honorIds 需要删除的荣誉称号主键
     * @return 结果
     */
    @Override
    public int deleteHonorByHonorIds(String[] honorIds)
    {
        return honorMapper.deleteHonorByHonorIds(honorIds);
    }

    /**
     * 删除荣誉称号信息
     * 
     * @param honorId 荣誉称号主键
     * @return 结果
     */
    @Override
    public int deleteHonorByHonorId(String honorId)
    {
        return honorMapper.deleteHonorByHonorId(honorId);
    }
}
